computed diameter

计算直径